package com.tangly.codeing.repository;

import com.tangly.codeing.model.Article;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Component;

/**
 * 文章
 *
 * @author tangbing
 * @date 2019/10/31
 */
@Component
public interface ArticleRepository extends ElasticsearchRepository<Article, String> {
    /**
     * 查询文章信息
     */
    Article queryArticleById(long id);
}
